export type EditRoomParams = {
  roomId?: string;    //不传则是创建房间的参数
  roomName?: string;
  tips?: string;
  picUrl?: string;
  preLoadVideo?: string;
  pauseVideo?: string;
  type?: number;
  direction?: boolean;
  muteStatus?: number;
  passwd?: string;
  startTime?: Date;
  endTime?: Date;
  description?: string;
  forceSignIn?: boolean;
  allowShare?: boolean;
  planCode?: string;
}

export type EtcDataReq = {
  anchorId?: string; //点赞时需要附带主播Id
  duration?: number; //直播或回放时长
  visits?: number; //访问人次
  shares?: number; //分享数
  likes?: number; //点赞数
}

export type RoomStatReq = {
  type: number; //统计类型
}

//签到相关字段
export type SignInOption = {
  property: string;
  title: string;
  required: boolean
}
// 用户签到字段
export type SignInContentReq = {
  property: string;
  title: string;
  content: string;
  required: boolean
}
// 获取已签到信息
export type getSignInReq = {
  property: string;
  title: string;
  content: string;
}
// 签到设置
export type SignReq = {
  signInOptions: SignInOption[];
  property: string;
  title: string;
  required?: string;
  signInContent: getSignInReq[]
}

export type SignInSettingReq = {
  hasSignIn: boolean;
  forceSign: boolean;
  signInOptions: SignInOption[];
}

//获取用户分享榜字段
export type ShareListReq = {
  nickName: string;  //用户昵称
  avatar: string;   //用户头像
  counts: string;  //分享次数
  userId: string; //用户id
};

//上传文件请求
export type UploadFileReq = {
  fileName: string;  //文件名称
  roomId: string;   //房间Id
  fileUrl: string;  //文件地址
};

//删除文件请求
export type DeleteFileReq = {
  roomId: string;   //房间Id
  fileId: string;   //文件Id
};

//文件转码请求
export type fileTransCodeReq = {
  roomId: string;   //房间Id
  id: string;   //文件Id
  fileUrl: string; //文件地址
};

//文件演示同步请求
export type fileSynReq = {
  roomId: string;   //房间Id
  id: string;   //文件Id
  transcodeUrl: string; //文件地址
  page: number; //翻页页码
  pages: number; //总页码
};

export type FileSyncsType = {
  id: string;
  roomId: string; //房间Id
  fileId: string; //文件Id
  transcodeUrl: string; //转码文件图片地址
  page: number; //翻页页码
  pages: number; //文件总页码
  offset: number; //偏移量(秒)
};